
#ifdef  I2C_H
  #define I2C_EXT
#else
  #define I2C_EXT extern
#endif

#define   DDR_EESCL           PORT0.PDR.BIT.B2
#define   DDR_EESDA           PORT0.PDR.BIT.B0

#define   IO_EESDAO           PORT0.PODR.BIT.B0
#define   IO_EESDAI           PORT0.PIDR.BIT.B0

#define   IO_EESCL            PORT0.PODR.BIT.B2

#define _OUTPUT 1
#define _INPUT 0

#define _HIGH 1
#define _LOW 0

I2C_EXT void I2C_Init( void );
I2C_EXT void I2C_Stop( void );
I2C_EXT void I2C_Start( void );
I2C_EXT void I2C_Flash( void );
I2C_EXT void I2C_Delay( unsigned int u16_Tmp );
I2C_EXT void I2C_WriteX( unsigned char u8_Tmp);
I2C_EXT unsigned char I2C_ACK( void );
I2C_EXT unsigned char I2C_ReadX( void );














